<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

/**
 * Smarty {aclblock}{/aclblock} block plugin
 *
 * Type:     block function<br>
 * Name:     aclblock<br>
 * Purpose:  check Zend_Acl for resourse and adn display block's code
 * @author Igor Budasov <igor dot budasov at gmail dot com>
 * @param string contents of the block
 * @param Smarty clever simulation of a method
 * @return string string $content re-formatted
 */
function smarty_block_aclblock($params, $content, &$smarty)
{
    if (is_null($content)) {
        return;
    }

    DebugBreak();
    
    return $assign ? $smarty->assign($assign, $_output) : $_output;

}

/* vim: set expandtab: */

?>
